home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1997 August / Walnut Creek CDROM.7z / VOL_400 / 460_01 / YACL0160.ZIP / uidemo / resource / main.cxx < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-18  |  612 b   |  32 lines

  1.  
  2.  
  3.  
  4. // This program demonstrates the use of resources under Windows. Currently
  5. // it does not work on any other platform.
  6. //
  7. // M. A. Sridhar, May 10, 1995
  8.  
  9. #include "ui/applic.h"
  10. #include "ui/composit.h"
  11.  
  12. #include "menudrv.h"
  13.  
  14. #include <fstream.h>
  15. #include "base/memory.h"
  16.  
  17. ofstream strm ("leak.log");
  18. CL_MemoryLeakChecker ck (strm);
  19.  
  20.  
  21. int UI_Application::Main (int, char* [])
  22. {
  23.     UI_CompositeVObject* root = new UI_CompositeVObject
  24.         (NULL, UI_Rectangle (100, 100, 300, 200));
  25.     root->Title() = "YACL Resource Demo";
  26.     MakeTopWindow (root);
  27.     MenuDriver driver (root);
  28.     Run();
  29.     return 0;
  30. }
  31.  
  32.